package cn.lingyangwl.agile.system.assembly;

import cn.lingyangwl.agile.system.model.entity.Article;
import cn.lingyangwl.agile.system.model.rqrs.article.ArticleResp;
import cn.lingyangwl.agile.system.model.rqrs.article.ArticleSaveReq;
import cn.lingyangwl.agile.system.model.rqrs.article.ArticleUpdateReq;
import org.mapstruct.Mapper;

/**
 * 文章
 *
 * @author shenguangyang
 */
@Mapper(componentModel = "spring")
public interface ArticleAssembly {
  ArticleResp toArticleResp(Article source);
  
  Article toArticle(ArticleSaveReq source);
  
  Article toArticle(ArticleUpdateReq source);
}
